package com.gxwuz.maven.service;

import java.util.List;

import com.gxwuz.maven.dao.BusinessDao;
import com.gxwuz.maven.entity.Business;

public class BusinessServiceImp implements IBusinessService{

	private BusinessDao businessDao;
	

	public void setBusinessDao(BusinessDao businessDao) {
		this.businessDao = businessDao;
	}

	public void delete(Integer id) {
		businessDao.delete(id);
	}

	public void update(Integer id, String name, String price) {
		businessDao.update(id, name, price);
	}

	public List<Business> findAll() {
		List<Business> businesses = businessDao.getAll();
		return businesses;
	}

	public void save(Business business) {
		businessDao.save(business);
	}

	
	
}
